package com.bookmarket.service.impl;

import com.bookmarket.dao.LQBackIndexMapper;
import com.bookmarket.service.LQBackIndexService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("backIndexService")
public class LQBackIndexServiceImpl implements LQBackIndexService {

    @Resource
    private LQBackIndexMapper backIndexMapper;

    @Override
    public int oneMonthSal(int month) {
        return backIndexMapper.oneMonthSal(month);
    }

    @Override
    public int oneYearSal(int year) {
        return backIndexMapper.oneYearSal(year);
    }

    @Override
    public int customNum() {
        return backIndexMapper.customNum();
    }

    public void setBackIndexMapper(LQBackIndexMapper backIndexMapper) {
        this.backIndexMapper = backIndexMapper;
    }
}
